package com.cjh.wxdemoserver.base.config;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @author ChenJH
 * @description 基础字段自动填充配置
 */

@Configuration
public class MetaObjectHandlerConfig {
    @Primary
    @Bean
    public MetaObjectHandler customMetaObjectHandler() {
        return new BaseDBFieldHandler();
    }
}
